/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.SimpleRobot;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class Team997HandTests extends SimpleRobot {

    private static final int kDigitalSlot = 4;
    private Joystick m_leftJoy = new Joystick(1);
    private Hand m_robotHand= new Hand(kDigitalSlot, 5, 6, 5);

    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public void autonomous() {
        
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl() {
        m_robotHand.setJoystick(m_leftJoy, 1, 4, 3, 2);
        while (isEnabled() && isOperatorControl()) {
            m_robotHand.update();
            getWatchdog().feed();
        }
    }
}
